﻿
namespace NoNameGoServer.Client.Commands {
	public class SetKomiCommand : Command {
		private readonly decimal _komi;

		public SetKomiCommand(decimal komi) {
			_komi = komi;
		}

		public override void Execute(NNGSClient nngsClient) {
			string cmd = string.Format("komi {0}\n", _komi);
			nngsClient.SendAsync(this, cmd, null);
		}
	}
}
